<?php
/*
 * @Author: lokei
 * @Date: 2022-09-19 13:45:10
 * @LastEditors: lokei
 * @LastEditTime: 2022-11-20 10:43:11
 * @Description: 
 */
namespace App\Http\Controllers\Activity\Gift;

use App\Common\Tools\ResultTool;
use App\Http\Controllers\Controller;
use App\Models\Activity\Gift\GiftRecordModel;
use Illuminate\Http\Request;

class RecordController extends Controller
{
	public function ofMy(Request $request)
	{
		$user = app('auth')->user();
		$items = GiftRecordModel::where('uid', '=', $user->uid)->get();
		$data['items'] = $items;
		$data['total'] = count($items);
		$res = ResultTool::success();
		$res['data'] = $data;
		return $res;
	}
	
}
